<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>     
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<link rel="stylesheet" href="${host_url}/css/app/common.css">
<link rel="stylesheet"  href="${host_url}/css/app/profit.css">
<link rel="stylesheet"  href="${host_url}/css/app/dropload.css">
<script type="text/javascript" src="${host_url}/js/app/jquery.min.js"></script>
<script src="${host_url}/js/app/dropload.min.js"></script>
<script type="text/javascript">
  document.getElementsByTagName('html')[0].style.fontSize = document.documentElement.clientWidth/50 + 'px';
 
</script>
<title>交易明细</title>
</head>
<body>
    <c:if test="${LogEarnOne.award != 2 and memberInfo.special_yn!='Y'}">
	    <p class="clearfix title-2">
	        <span class="leftArea">待结算</span>
	        <span class="rightArea"  style="font-size:18px !important;">${LogEarnOne.free_cash}</span>
	    </p>
    </c:if>
    <c:if test="${LogEarnOne.award == 2 and memberInfo.special_yn!='Y'}">
	    <p class="clearfix title-2">
	        <span class="leftArea">待结算</span>
	        <span class="rightArea"  style="font-size:18px !important;">${LogEarnOne.free_cash}</span>
	    </p>
    </c:if>
    <c:if test="${LogEarnOne.award == 2 and memberInfo.special_yn=='Y'}">
	    <p class="clearfix title-2">
	        <span class="leftArea">待结算</span>
	   	 <c:if test="${memberInfo.member_id !='758' }"> 
			<span class="rightArea" style="font-size:18px !important;">${LogEarnOne.free_cash - LogEarnOne.capital_cash}</span>
		 </c:if>
		 <c:if test="${memberInfo.member_id =='758' }"> 
			  <span class="rightArea" style="font-size:18px !important;">${LogEarnOne.free_cash}</span>
		 </c:if>
	    </p>
    </c:if>
    <ul class="content2">
        <li class="clearfix">
            <p class="leftArea">类<span>站位</span>型</p>
            <p class="rightArea">${LogEarnOne.award_name}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea">状<span>站位</span>态</p>
            <p class="rightArea">
            <c:if test="${LogEarnOne.state == 1}">待结算</c:if>
            <c:if test="${LogEarnOne.state == 2}">已结算</c:if>
            <c:if test="${LogEarnOne.state == 3}">已取消</c:if>
            <c:if test="${LogEarnOne.state == 3 and (LogEarnOne.award == 2 or LogEarnOne.award == 5)}">（相关${ticket_name}已退回）</c:if>
            </p>
        </li>
        <li class="clearfix">
            <p class="leftArea">创建时间</p>
            <p class="rightArea">${LogEarnOne.create_time}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea">交易单号</p>
            <p class="rightArea">${LogEarnOne.no}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea">对方账号</p>
            <p class="rightArea new-style">${LogEarnOne.buy_member_nick_name}</p>
        </li>
         <c:if test="${LogEarnOne.award != 2}">
	         <li class="clearfix">
	            <p class="leftArea">摘<span>站位</span>要</p>
	            <p class="rightArea">
	            ${LogEarnOne.remark}
	            </p>
	        </li>
        </c:if>
         <c:if test="${LogEarnOne.award == 2}">
		         <li class="clearfix">
		            <p class="leftArea">摘<span>站位</span>要</p>
		            <p class="rightArea">
		                               好友原价购买${LogEarnOne.ticket}${ticket_name}
		            </p>
		        </li>
        </c:if>
        <c:if test="${LogEarnOne.award == 3 and LogEarnOne.state == 1}">
	        <li class="clearfix">
	            <p class="leftArea bor-l">佣金比例</p>
	            <p class="rightArea"><fmt:formatNumber value="${LogEarnOne.rate*100}" pattern="#0.0" maxFractionDigits="1"/>%</p>
	        </li>
	        <li class="clearfix">
	            <p class="leftArea bor-l">现金收益</p>
	            <p class="rightArea">${LogEarnOne.free_cash}</p>
	        </li>
	        <li class="clearfix">
	            <p class="leftArea bor-l">${shopping_money_name}</p>
	            <p class="rightArea">${LogEarnOne.buy_cash}</p>
	        </li>
        </c:if>
        <c:if test="${LogEarnOne.award ==1 and LogEarnOne.state == 1}">
	        <li class="clearfix">
	            <p class="leftArea bor-l">现金收益</p>
	            <p class="rightArea">${LogEarnOne.free_cash}</p>
	        </li>
        </c:if>
        <c:if test="${LogEarnOne.award == 9 and LogEarnOne.state == 1}">
         <li class="clearfix">
            <p class="leftArea bor-l">佣金比例</p>
            <p class="rightArea"><fmt:formatNumber value="${LogEarnOne.rate*100}" pattern="#0.0" maxFractionDigits="1"/>%</p>
        </li>
        <li class="clearfix">
            <p class="leftArea bor-l">现金收益</p>
            <p class="rightArea">${LogEarnOne.free_cash}</p>
        </li>
        </c:if>
        <c:if test="${(LogEarnOne.award == 5 and LogEarnOne.state == 1) or (LogEarnOne.award == 6 and LogEarnOne.state == 1) or (LogEarnOne.award == 7 and LogEarnOne.state == 1)}">
        <li class="clearfix">
            <p class="leftArea bor-l">佣金比例</p>
            <p class="rightArea"><fmt:formatNumber value="${LogEarnOne.rate*100}" pattern="#0.0" maxFractionDigits="1"/>%</p>
        </li>
        <li class="clearfix">
            <p class="leftArea bor-l">现金收益</p>
            <p class="rightArea">${LogEarnOne.free_cash}</p>
        </li>
        </c:if>
        <c:if test="${LogEarnOne.award eq '2' and LogEarnOne.state eq '1'}">
        <li class="clearfix">
            <p class="leftArea bor-l">出售${ticket_name}</p>
            <p class="rightArea">${LogEarnOne.ticket}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea bor-l">售出${ticket_name}类型</p>
            <p class="rightArea"><fmt:formatNumber value="${LogEarnOne.sell_rate*10}" pattern="#0.0" maxFractionDigits="1"/>折${ticket_name}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea bor-l">买方购入${ticket_name}类型</p>
            <p class="rightArea"><fmt:formatNumber value="${LogEarnOne.buy_rate*10}" pattern="#0.0" maxFractionDigits="1"/>折${ticket_name}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea bor-l">总收益</p>
            <p class="rightArea">${LogEarnOne.earn}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea bor-l">--本金</p>
            <p class="rightArea">${LogEarnOne.capital_cash}</p>
        </li>
        <li class="clearfix">
            <p class="leftArea bor-l">--利润</p>
            <p class="rightArea"><fmt:formatNumber value="${LogEarnOne.profit_cash - LogEarnOne.buy_cash}" pattern="#0.00" maxFractionDigits="2"/></p>
        </li>
        <li class="clearfix">
            <p class="leftArea bor-l">--${shopping_money_name}</p>
            <p class="rightArea">${LogEarnOne.buy_cash}</p>
        </li>        
        </c:if>
        <c:if test="${LogEarnOne.award == 2 and memberInfo.special_yn=='Y' and memberInfo.member_id !='758'}">
	        <li class="clearfix">
	            <p class="leftArea bor-l">本金返还</p>
	            <p class="rightArea">${LogEarnOne.capital_cash}</p>
	        </li> 
        </c:if>
		<c:if test="${LogEarnOne.state == 3}">
        <li class="clearfix">
            <p class="leftArea bor-l">取消原因</p>
            <p class="rightArea">${LogEarnOne.reason}</p>
        </li> 
        </c:if>       
    </ul>
    </body>
</html>